package com.cupster.func_db_litepal.entity;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

//litepal step5
public class Article extends LitePalSupport {

    @Column(index =  true )
    private long id;
    private String title;
    private String url;
    private float progress;
    @Column(defaultValue = "0")
    private int dr;
    private int isCollected;

    public boolean save(){
        return super.save();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public float getProgress() {
        return progress;
    }

    public void setProgress(float progress) {
        this.progress = progress;
    }

    public int getDr() {
        return dr;
    }

    public void setDr(int dr) {
        this.dr = dr;
    }

    public int getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(int isCollected) {
        this.isCollected = isCollected;
    }
}
